|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfurny.ga.logger.entities.IndividualEntry
@Entity public class IndividualEntry
Database entry for an individual.
Field Summary | |
---|---|
private LogEvent |
event
The event. |
private java.lang.Double |
fitness
The fitness. |
private int |
generation
The generation. |
private java.util.Set<GeneEntry> |
genes
The genes. |
private long |
id
The id. |
Constructor Summary | |
---|---|
private |
IndividualEntry()
Instantiates a new individual entry. |
|
IndividualEntry(int generation,
LogEvent event,
java.util.Collection<GeneEntry> c,
java.lang.Double fitness)
Instantiates a new individual entry. |
Method Summary | |
---|---|
LogEvent |
getEvent()
Gets the event. |
java.lang.Double |
getFitness()
Gets the fitness. |
int |
getGeneration()
Gets the generation. |
java.util.Set<GeneEntry> |
getGenes()
Gets the genes. |
long |
getId()
Gets the id. |
void |
setEvent(LogEvent event)
Sets the event. |
void |
setFitness(java.lang.Double fitness)
Sets the fitness. |
void |
setGeneration(int generation)
Sets the generation. |
void |
setGenes(java.util.Set<GeneEntry> genes)
Sets the genes. |
private void |
setId(long id)
Sets the id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long id
private LogEvent event
private int generation
private java.util.Set<GeneEntry> genes
private java.lang.Double fitness
Constructor Detail |
---|
private IndividualEntry()
public IndividualEntry(int generation, LogEvent event, java.util.Collection<GeneEntry> c, java.lang.Double fitness)
generation
- the generationevent
- the eventc
- the cfitness
- the fitnessMethod Detail |
---|
public long getId()
private void setId(long id)
id
- the new idpublic int getGeneration()
public void setGeneration(int generation)
generation
- the new generationpublic LogEvent getEvent()
public void setEvent(LogEvent event)
event
- the new eventpublic java.util.Set<GeneEntry> getGenes()
public void setGenes(java.util.Set<GeneEntry> genes)
genes
- the new genespublic java.lang.Double getFitness()
public void setFitness(java.lang.Double fitness)
fitness
- the new fitness
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |